package com.emp.util;

public class SaltUtil {
      static String ss = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
	  public static String generateSalt(){
		    String s = "";
		    for(int i=0;i<4;i++){
		    	int index = (int)Math.floor(Math.random()* ss.length());//[0-51]
		    	 s += ss.charAt(index);
		    }
		    return s;
	  }
	  public static void main(String[] args) {
		      System.out.println(generateSalt());
	}
}
